#include <iostream>
#include <string>
#include <memory>

int main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) {
    try {
        std::cout << "C++ Development Environment Test" << std::endl;
        std::cout << "C++ Version: " << __cplusplus << std::endl;
        
        // 测试智能指针
        auto ptr = std::make_unique<std::string>("Hello, Modern C++!");
        std::cout << *ptr << std::endl;
        
        return 0;
    } catch (const std::exception& e) {
        std::cerr << "Error: " << e.what() << std::endl;
        return 1;
    } catch (...) {
        std::cerr << "Unknown error occurred" << std::endl;
        return 1;
    }
} 